<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="../general/header.jsp" %>
		<div id="header">FREE MARKET HOME PAGE</div>
		<%@ include file="../general/menu.jsp" %>
		<h2>Vendors</h2>
		<table class="listas">
			<tr style="font-weight:bold;"> 
				<td> Username </td>  
				<td> Name </td> 
				<td> Last name </td> 				 					
				<td> E-mail </td> 
				<td> Debt </td>
			</tr>
			<c:forEach var="user" items="${users}" varStatus="status">
				<tr>
					<td> <a href="../user/viewProfile?userid=${user.id}"><c:out value="${user.userName}" /></a></td>  
					<td> <c:out value="${user.name}" /> </td> 
					<td> <c:out value="${user.lastName}" /> </td> 				 					
					<td> <c:out value="${user.email}" /> </td>
					<td> <c:out value="${debts[status.index]}" /></td>
				</tr>
			</c:forEach>
		</table>		
<%@ include file="../general/footer.jsp" %>